﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<z.m.Login>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Login
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<% using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) { %>
	<%: Html.AntiForgeryToken() %>
	<%: Html.ValidationSummary(true) %>

	<fieldset>
		<legend>Log in Form</legend>
		<ol>
			<li>
				<%: Html.LabelFor(m => m.UserName) %>
				<%: Html.TextBoxFor(m => m.UserName) %>
				<%: Html.ValidationMessageFor(m => m.UserName) %>
			</li>
			<li>
				<%: Html.LabelFor(m => m.Password) %>
				<%: Html.PasswordFor(m => m.Password) %>
				<%: Html.ValidationMessageFor(m => m.Password) %>
			</li>
			<li>
				<%: Html.CheckBoxFor(m => m.RememberMe) %>
				<%: Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" }) %>
			</li>
		</ol>
		<input type="submit" value="Log in" />
	</fieldset>
	<p>
		<%: Html.ActionLink("Register", "Register","User") %> if you don't have an account.
	</p>
	<% } %>
	<%: Html.Action("ExternalLoginsList", new { ReturnUrl = ViewBag.ReturnUrl }) %>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptsSection" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
